﻿using UnityEngine;
using System.Collections;

public class GyroscopeReader : MonoBehaviour {

    public bool forceOverride = false;

    public Vector3 rotationChangeDegrees = Vector3.zero;
    private Vector3 rotationRate = Vector3.zero;

	// Use this for initialization
	void Start () {

        Input.gyro.enabled = true;

	}
	
	// Update is called once per frame
	void Update () {

        if (!forceOverride)
        {
            rotationRate = Input.gyro.rotationRate;
            rotationChangeDegrees = rotationRate * (Time.deltaTime * Mathf.Rad2Deg);
        }

	}
}
